/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rdr.xfiles.model.filesystem;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Ruben Ruano
 */
public class FileSystemModel{
    List<DirectoryData> roots;
    
    public FileSystemModel()
    {
        roots = new ArrayList<DirectoryData>();
        File[] fRoots = File.listRoots();
        
        for(File f: fRoots)
        {
            roots.add(new DirectoryData(f));
        }
    }
    
    public List<DirectoryData> getRoots()
    {
        return roots;
    }
}